.class public Lcom/example/m6wmr/IntegralExchangeGift2;
.super Landroid/app/Activity;
.source "IntegralExchangeGift2.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;,
        Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;,
        Lcom/example/m6wmr/IntegralExchangeGift2$MyListener;,
        Lcom/example/m6wmr/IntegralExchangeGift2$mOnclistener;
    }
.end annotation


# instance fields
.field private activityList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private adapter:Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;

.field private allintegral:Ljava/lang/String;

.field private beans:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/IntegralExchangeBean;",
            ">;"
        }
    .end annotation
.end field

.field private closebtn:Landroid/widget/LinearLayout;

.field private contentValues:Landroid/content/ContentValues;

.field private context:Landroid/content/Context;

.field private contextView:Landroid/view/View;

.field private cursor:Landroid/database/Cursor;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private getJsonString:Ljava/lang/String;

.field private h:Landroid/os/Handler;

.field private im_gift:Landroid/widget/ImageView;

.field private imageLoader:LPlugclass/ImageLoader;

.field private is_loading:Z

.field private ll_integral_exchange_root:Landroid/widget/LinearLayout;

.field private m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private openHelper:Ldbclass/DBOpenHelper;

.field private page:I

.field private pagesize:I

.field private pullToRefreshLayout:Lmyview/PullToRefreshLayout;

.field private savedInstanceState:Landroid/os/Bundle;

.field private top:Landroid/widget/LinearLayout;

.field private tv_allintegral:Landroid/widget/TextView;

.field private tv_exchange_history:Landroid/widget/TextView;

.field private tv_gift_name:Landroid/widget/TextView;

.field private tv_go_exchange:Landroid/widget/TextView;

.field private tv_needintegral:Landroid/widget/TextView;

.field private tv_oldprice:Landroid/widget/TextView;

.field private waitLoginView:Landroid/view/View;

.field private xlv_integral_exchange:Landroid/widget/GridView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 53
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 83
    const/4 v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->page:I

    .line 84
    const/4 v0, 0x5

    iput v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->pagesize:I

    .line 86
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->is_loading:Z

    .line 91
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->mHandler:Landroid/os/Handler;

    .line 53
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/IntegralExchangeGift2;)Z
    .locals 1

    .prologue
    .line 86
    iget-boolean v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->is_loading:Z

    return v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/IntegralExchangeGift2;Z)V
    .locals 0

    .prologue
    .line 86
    iput-boolean p1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->is_loading:Z

    return-void
.end method

.method static synthetic access$10(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 80
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->allintegral:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/IntegralExchangeGift2;)Lmyview/PullToRefreshLayout;
    .locals 1

    .prologue
    .line 93
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->pullToRefreshLayout:Lmyview/PullToRefreshLayout;

    return-object v0
.end method

.method static synthetic access$12(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 81
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->getJsonString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$13(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->h:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$14(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/widget/GridView;
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->xlv_integral_exchange:Landroid/widget/GridView;

    return-object v0
.end method

.method static synthetic access$15(Lcom/example/m6wmr/IntegralExchangeGift2;)Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->adapter:Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;

    return-object v0
.end method

.method static synthetic access$16(Lcom/example/m6wmr/IntegralExchangeGift2;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$17(Lcom/example/m6wmr/IntegralExchangeGift2;)I
    .locals 1

    .prologue
    .line 84
    iget v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->pagesize:I

    return v0
.end method

.method static synthetic access$18(Lcom/example/m6wmr/IntegralExchangeGift2;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 81
    iput-object p1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->getJsonString:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/IntegralExchangeGift2;I)V
    .locals 0

    .prologue
    .line 83
    iput p1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->page:I

    return-void
.end method

.method static synthetic access$3(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 91
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;
    .locals 1

    .prologue
    .line 88
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/IntegralExchangeGift2;)V
    .locals 0

    .prologue
    .line 455
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->reflushData()V

    return-void
.end method

.method static synthetic access$6(Lcom/example/m6wmr/IntegralExchangeGift2;)I
    .locals 1

    .prologue
    .line 83
    iget v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->page:I

    return v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/IntegralExchangeGift2;)V
    .locals 0

    .prologue
    .line 504
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->addData()V

    return-void
.end method

.method static synthetic access$8(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 57
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/IntegralExchangeGift2;)LPlugclass/ImageLoader;
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->imageLoader:LPlugclass/ImageLoader;

    return-object v0
.end method

.method private addData()V
    .locals 1

    .prologue
    .line 507
    new-instance v0, Lcom/example/m6wmr/IntegralExchangeGift2$5;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/IntegralExchangeGift2$5;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2;)V

    .line 550
    invoke-virtual {v0}, Lcom/example/m6wmr/IntegralExchangeGift2$5;->start()V

    .line 553
    return-void
.end method

.method private getData()V
    .locals 3

    .prologue
    .line 561
    .line 562
    const-string v1, "userInfo"

    const/4 v2, 0x0

    .line 561
    invoke-virtual {p0, v1, v2}, Lcom/example/m6wmr/IntegralExchangeGift2;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 563
    .local v0, "preferences":Landroid/content/SharedPreferences;
    const-string v1, "score"

    const-string v2, "0"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->allintegral:Ljava/lang/String;

    .line 566
    return-void
.end method

.method private gethttpData()V
    .locals 2

    .prologue
    .line 298
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift2$2;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/IntegralExchangeGift2$2;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 326
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 329
    return-void
.end method

.method private initData()V
    .locals 2

    .prologue
    .line 440
    invoke-virtual {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->m:Lmyapp/MyApp;

    .line 441
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->activityList:Ljava/util/ArrayList;

    .line 442
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->activityList:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 443
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->savedInstanceState:Landroid/os/Bundle;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->savedInstanceState:Landroid/os/Bundle;

    .line 444
    iput-object p0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->context:Landroid/content/Context;

    .line 445
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->contentValues:Landroid/content/ContentValues;

    .line 446
    new-instance v0, Ldbclass/DBOpenHelper;

    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->openHelper:Ldbclass/DBOpenHelper;

    .line 447
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->openHelper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 448
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->openHelper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 449
    new-instance v0, LPlugclass/ImageLoader;

    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, LPlugclass/ImageLoader;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->imageLoader:LPlugclass/ImageLoader;

    .line 451
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;

    .line 453
    return-void
.end method

.method private initView()V
    .locals 2

    .prologue
    .line 368
    const v0, 0x7f0c0090

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->ll_integral_exchange_root:Landroid/widget/LinearLayout;

    .line 369
    const v0, 0x7f0c0001

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->closebtn:Landroid/widget/LinearLayout;

    .line 372
    const/high16 v0, 0x7f0c0000

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->top:Landroid/widget/LinearLayout;

    .line 373
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v0

    const-string v1, "1"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 374
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->top:Landroid/widget/LinearLayout;

    const v1, 0x7f070026

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 377
    :cond_0
    const v0, 0x7f0c00c0

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->tv_allintegral:Landroid/widget/TextView;

    .line 378
    const v0, 0x7f0c0257

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->im_gift:Landroid/widget/ImageView;

    .line 379
    const v0, 0x7f0c025a

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->tv_needintegral:Landroid/widget/TextView;

    .line 380
    const v0, 0x7f0c0259

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->tv_oldprice:Landroid/widget/TextView;

    .line 381
    const v0, 0x7f0c00c1

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->tv_exchange_history:Landroid/widget/TextView;

    .line 382
    const v0, 0x7f0c0258

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->tv_gift_name:Landroid/widget/TextView;

    .line 384
    const v0, 0x7f0c025b

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->tv_go_exchange:Landroid/widget/TextView;

    .line 388
    const v0, 0x7f0c00c2

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/GridView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->xlv_integral_exchange:Landroid/widget/GridView;

    .line 390
    new-instance v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2;Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;)V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->adapter:Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;

    .line 393
    return-void
.end method

.method private islogin()V
    .locals 0

    .prologue
    .line 290
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->gethttpData()V

    .line 292
    return-void
.end method

.method private onClistener()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 583
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->closebtn:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift2$mOnclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/IntegralExchangeGift2$mOnclistener;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2;Lcom/example/m6wmr/IntegralExchangeGift2$mOnclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 584
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->tv_exchange_history:Landroid/widget/TextView;

    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift2$mOnclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/IntegralExchangeGift2$mOnclistener;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2;Lcom/example/m6wmr/IntegralExchangeGift2$mOnclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 586
    return-void
.end method

.method private reflushData()V
    .locals 1

    .prologue
    .line 457
    new-instance v0, Lcom/example/m6wmr/IntegralExchangeGift2$4;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/IntegralExchangeGift2$4;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2;)V

    .line 494
    invoke-virtual {v0}, Lcom/example/m6wmr/IntegralExchangeGift2$4;->start()V

    .line 498
    return-void
.end method

.method private setData()V
    .locals 2

    .prologue
    .line 574
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->tv_allintegral:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->allintegral:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 577
    return-void
.end method

.method public static setListViewHeightBasedOnChildren(Landroid/widget/GridView;)V
    .locals 9
    .param p0, "listView"    # Landroid/widget/GridView;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    const/4 v8, 0x0

    .line 645
    invoke-virtual {p0}, Landroid/widget/GridView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v2

    .line 646
    .local v2, "listAdapter":Landroid/widget/ListAdapter;
    if-nez v2, :cond_0

    .line 670
    :goto_0
    return-void

    .line 650
    :cond_0
    const/4 v0, 0x2

    .line 651
    .local v0, "col":I
    const/4 v5, 0x0

    .line 654
    .local v5, "totalHeight":I
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    invoke-interface {v2}, Landroid/widget/ListAdapter;->getCount()I

    move-result v6

    if-lt v1, v6, :cond_1

    .line 663
    invoke-virtual {p0}, Landroid/widget/GridView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v4

    .line 665
    .local v4, "params":Landroid/view/ViewGroup$LayoutParams;
    iput v5, v4, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 669
    invoke-virtual {p0, v4}, Landroid/widget/GridView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 656
    .end local v4    # "params":Landroid/view/ViewGroup$LayoutParams;
    :cond_1
    const/4 v6, 0x0

    invoke-interface {v2, v1, v6, p0}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 657
    .local v3, "listItem":Landroid/view/View;
    invoke-virtual {v3, v8, v8}, Landroid/view/View;->measure(II)V

    .line 659
    invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I

    move-result v6

    invoke-virtual {p0}, Landroid/widget/GridView;->getVerticalSpacing()I

    move-result v7

    add-int/2addr v6, v7

    add-int/2addr v5, v6

    .line 654
    add-int/2addr v1, v0

    goto :goto_1
.end method


# virtual methods
.method public GetTime()Ljava/lang/String;
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SimpleDateFormat"
        }
    .end annotation

    .prologue
    .line 785
    new-instance v1, Ljava/text/SimpleDateFormat;

    .line 786
    const-string v2, "yyyy-MM-dd    hh:mm:ss"

    .line 785
    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 787
    .local v1, "sDateFormat":Ljava/text/SimpleDateFormat;
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    .line 788
    .local v0, "date":Ljava/lang/String;
    return-object v0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 629
    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    .line 631
    const/16 v0, 0x64

    if-ne p1, v0, :cond_0

    .line 632
    const/4 v0, 0x1

    if-ne p2, v0, :cond_0

    .line 634
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->savedInstanceState:Landroid/os/Bundle;

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->onCreate(Landroid/os/Bundle;)V

    .line 640
    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 100
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 101
    const v0, 0x7f03001f

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->setContentView(I)V

    .line 103
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->initData()V

    .line 105
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->getData()V

    .line 107
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->initView()V

    .line 109
    const v0, 0x7f0c00c3

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lmyview/PullToRefreshLayout;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->pullToRefreshLayout:Lmyview/PullToRefreshLayout;

    .line 110
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->pullToRefreshLayout:Lmyview/PullToRefreshLayout;

    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift2$MyListener;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/IntegralExchangeGift2$MyListener;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2;)V

    invoke-virtual {v0, v1}, Lmyview/PullToRefreshLayout;->setOnRefreshListener(Lmyview/PullToRefreshLayout$OnRefreshListener;)V

    .line 113
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->islogin()V

    .line 115
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->addData()V

    .line 117
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->setData()V

    .line 119
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->onClistener()V

    .line 123
    new-instance v0, Lcom/example/m6wmr/IntegralExchangeGift2$1;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/IntegralExchangeGift2$1;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2;)V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->h:Landroid/os/Handler;

    .line 243
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 621
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 622
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 623
    return-void
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 612
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->getData()V

    .line 613
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift2;->setData()V

    .line 614
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 616
    return-void
.end method

.method public waitlogin()V
    .locals 4

    .prologue
    .line 337
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->ll_integral_exchange_root:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 338
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->waitLoginView:Landroid/view/View;

    if-nez v1, :cond_0

    .line 339
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->context:Landroid/content/Context;

    const v2, 0x7f03009e

    .line 340
    const/4 v3, 0x0

    .line 339
    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->waitLoginView:Landroid/view/View;

    .line 341
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->waitLoginView:Landroid/view/View;

    .line 342
    const v2, 0x7f0c0301

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 341
    check-cast v0, Landroid/widget/TextView;

    .line 343
    .local v0, "waitlogin":Landroid/widget/TextView;
    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift2$3;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/IntegralExchangeGift2$3;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 357
    .end local v0    # "waitlogin":Landroid/widget/TextView;
    :cond_0
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->ll_integral_exchange_root:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/example/m6wmr/IntegralExchangeGift2;->waitLoginView:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 360
    return-void
.end method
